<%--
    Document   : addcourse
    Created on : 2010-12-20, 19:44:55
    Author     : yiyang
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" import="course.*,java.util.*,java.lang.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>删除课程</title>
<style type="text/css">
<!--
.style1 {
	color: #FF0000;
	font-family: "华文仿宋";
}
.style2 {font-size: 18px}
-->
</style>
</head>

<body>

        <%
        String cid=request.getParameter("c_id");
        //Course d=new Course();
        try{
            Course d=new Course();
            d.delete(Integer.parseInt(cid));
           
       %>
<div align="center">
  <h1 class="style1"> 删除成功！</h1>
  <p class="style2">
   <a style="text-decoration: none" href="main.html"><font color="#FF0000">返回首页</font></a></p>
  <p class="style2">
   <a style="text-decoration: none" href="courseManage.jsp"><font color="#FF0000">返回管理页面</font></a></p>
</div>
         <%}catch(DeleteException e){
            out.println("<script>alert('"+e.getMessage()+"')</script>");
            //return;
            %>

            <div align="center">
  <h1 class="style1"> 删除失败！</h1>
  <p class="style2">
   <a style="text-decoration: none" href="index.jsp"><font color="#FF0000">返回首页</font></a></p>
  <p class="style2">
   <a style="text-decoration: none" href="courseManage.jsp"><font color="#FF0000">返回管理页面</font></a></p>
</div>
      <%  }

       %>
</body>
</html>
